<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    let obj= {
        name:'123',
        get name(){
            return
        },
        set name(newVal){
            if(newVal.includes('1')){
                return 'Invalid Value'
            }
            return newVal;
        }
    }

    3
    obj.name = '123';
    console.log(obj.name)
</script>
</body>
</html>